<template>
    <div class="box">
        <span class="a">|</span>
        <span class="b"><slot></slot></span>
    </div>
</template>

<style lang="less" scoped>
    .box{
        font-weight: 800;
        .a{
            color: red;
        }
    }
</style>